package com.chixing.day04_oop;

public class TestComputer {
    public static void main(String[] args) {
        Cpu cpu1 = new Cpu();
        cpu1.setCpuId(1);
        cpu1.setCpuModel("A01");
        cpu1.setCpuFactory("小米");

        Cpu cpu2 = new Cpu(2,"A02","华为");

        VideoCard videoCard1 = new VideoCard();
        videoCard1.setVideoId(3);
        videoCard1.setVideoModel("B01");
        videoCard1.setVideoModel("联想");

        VideoCard videoCard2 = new VideoCard(4,"B02","华硕");

        System.out.println(cpu1);
        System.out.println(cpu2);
        System.out.println(videoCard1);
        System.out.println(videoCard2);

        MainBoard mainBoard1 = new MainBoard(cpu1,videoCard1);
        System.out.println(mainBoard1);

        Computer computer1 = new Computer(mainBoard1);
        System.out.println(computer1);
    }
}
